package com.ruoyi.web.controller.shop.service;


import com.ruoyi.common.entity.DO.product.ShopProductAttributeDO;
import com.ruoyi.common.entity.VO.product.ProductSearchVO;
import com.ruoyi.common.entity.VO.shop.ShopProductSearchVO;
import com.ruoyi.common.entity.VO.shop.ShopProductVO;

import java.util.List;

public interface IBackShopProductService {

    List<ShopProductVO> searchList(ShopProductSearchVO shopProductSearchVO);

    List<ShopProductAttributeDO> searchAttrList(ShopProductSearchVO shopProductSearchVO);

    ShopProductVO getDetailById(Long linkId);

    void add(ShopProductVO shopProductVO);

    int edit(ShopProductVO shopProductVO);

    int creditEdit(ShopProductVO shopProductVO);

    int attrEdit(ShopProductAttributeDO shopProductAttributeDO);

    int creditRemove(ShopProductVO shopProductVO);

    int attrRemove(ShopProductAttributeDO shopProductAttributeDO);

    String checkProductAttrNameUnique(ShopProductAttributeDO shopProductAttributeDO);
}
